<template name="postItem">
    <div class="post">
        <div class="post-content">
            <h3><a href="{{url}}" target="_blank">{{title}}</a><span>{{domain}}</span></h3>
            <p>
                <span>{{uploadTime}}</span>
                来自:{{author}}
                <a href="{{pathFor 'postPage'}}">{{commentsCount}} 条评论</a>
                {{#if ownPost}}
                    <a href="{{pathFor 'postEdit'}}"> 编辑</a>
                {{/if}}

                <a href="/category/{{category}}" class="catagory-link">{{category}}</a>

                {{#if newest}}
                    <a class="new-link">NEW</a>
                {{/if}}
            </p>
        </div>
        <a href="{{pathFor 'postPage'}}" class="discuss btn btn-default">更多信息</a>
    </div>
</template>